home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#)40 1.2 tnfs/head/rpcsvc/mount.h, scosysnfs, sco_3.0, 301FCS 4/28/94 14:25:13, SecureWare, Inc.
- * Copyright (c) 1994
- * All rights reserved.
- */
- /*
- * System V NFS
- *
- * Copyright 1991 INTERACTIVE Systems Corporation (ISC)
- * Copyright 1986-1989 Lachman Associates, Incorporated (LAI)
- *
- * All Rights Reserved.
- */
-
- /* @(#)mount.h 4.4 System V NFS source */
-
- /* mount.h 1.3 90/07/19 4.1NFSSRC SMI */
-
- /*
- * Copyright (c) 1988,1990 Sun Microsystems, Inc.
- */
-
- #ifndef _rpcsvc_mount_h
- #define _rpcsvc_mount_h
-
- #define MOUNTPROG 100005
- #define MOUNTPROC_MNT 1
- #define MOUNTPROC_DUMP 2
- #define MOUNTPROC_UMNT 3
- #define MOUNTPROC_UMNTALL 4
- #define MOUNTPROC_EXPORT 5
- #define MOUNTPROC_EXPORTALL 6
- #define MOUNTVERS_ORIG 1
- #define MOUNTVERS 1
- #define MOUNTVERS_POSIX 2
- #if SEC_TNFS
- #define MOUNTVERS_TNFS 0x10001
- #endif
-
- #ifndef svc_getcaller
- #define svc_getcaller(x) (&(x)->xp_raddr)
- #endif
-
- bool_t xdr_path();
- bool_t xdr_fhandle();
- bool_t xdr_fhstatus();
- bool_t xdr_mountlist();
- bool_t xdr_exports();
- #ifdef notyet
- bool_t xdr_pathcnf();
- #endif /*notyet*/
-
- struct mountlist { /* what is mounted */
- char *ml_name;
- char *ml_path;
- struct mountlist *ml_nxt;
- };
-
- struct fhstatus {
- int fhs_status;
- fhandle_t fhs_fh;
- };
-
- /*
- * List of exported directories
- * An export entry with ex_groups
- * NULL indicates an entry which is exported to the world.
- */
- struct exports {
- dev_t ex_dev; /* dev of directory */
- char *ex_name; /* name of directory */
- struct groups *ex_groups; /* groups allowed to mount this entry */
- struct exports *ex_next;
- short ex_rootmap; /* id to map root requests to */
- short ex_flags; /* bits to mask off file mode */
- };
-
- struct groups {
- char *g_name;
- struct groups *g_next;
- };
-
- #endif /*!_rpcsvc_mount_h*/
-